<!--
 * @Author: wangming
 * @Date: 2021-09-29 10:42:39
 * @LastEditors: wangming
 * @LastEditTime: 2021-09-29 14:15:10
 * @FilePath: /hanma-application-designer-fed/src/components/dynamicForm/rightModel/components/hmFormkey/addModule/__components/NumberInput.vue
 * @Description: 
-->
<template>
  <el-input-number
    :value="value"
    @input="handleChange"
    label="请输入数值"
    :precision="config.type === 'INTEGER' ? 0 : undefined"
  ></el-input-number>
</template>

<script>
export default {
  props: ["value", "config"],
  mounted() {},
  methods: {
    handleChange(value) {
      this.$emit("input", value || undefined);
    },
  },
};
</script>

<style scoped lang="scss">
</style>
